<div class="item comment" id="c<?php echo $data->id; ?>">

    <!--
	<?php echo CHtml::link("#{$data->id}", $data->url, array(
		'class'=>'cid',
		'title'=>'Permalink to this comment',
    )); ?>
    -->

    <div class="hd clearfix">
        <div class="avatar">
            <img src="<?php echo Yii::app()->baseUrl.'/images/default_avatar.jpg'?>" />
            <span></span>
        </div>
        <div class="info">
            <p>On the post - "<?php echo CHtml::link(CHtml::encode($data->post->title), $data->post->url); ?>"</p>
            <p><?php echo $data->authorLink; ?> says:</p>
        </div>
    </div>

	<div class="bd">
		<div class="cont"><?php echo nl2br(CHtml::encode($data->content)); ?></div>
        <div class="actions">
            <?php if($data->status==Comment::STATUS_PENDING): ?>
                <span class="pending">Pending approval</span> |
                <?php echo CHtml::linkButton('Approve', array(
                    'submit'=>array('comment/approve','id'=>$data->id),
                )); ?> |
            <?php endif; ?>
            <?php echo CHtml::link('Reply', array('comment/create', 'id'=>$data->id)); ?>
            <?php echo CHtml::linkButton('Delete', array(
                'submit'=>array('comment/delete','id'=>$data->id),
                'confirm'=>"Are you sure to delete comment #{$data->id}?",
            )); ?>
        </div>
        <div class="time"><?php echo date('F j, Y \a\t h:i a',$data->create_time); ?></div>
	</div>

</div><!-- comment -->
